import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { FormlyModule } from '@ngx-formly/core';
import { FIELD_TYPE_COMPONENTS, ZORRO_FORMLY_CONFIG } from './ui-zorro.config';
import { ApesModule } from '@shared/apes/apes.module';
import { TranslateModule } from '@ngx-translate/core';
import { AgGridExtModule } from '@shared/ag-grid-ext/ag-grid-ext.module';
import { UploadModule } from '@shared/upload/upload.module';
import { ApesDrawerCustomComponent } from '@shared/ui-zorro/src/types/drawer';
import { CheckboxModule } from '@shared/checkbox/checkbox.module';
import { UploadImagesModule } from '@shared/upload-images/upload-images.module';
import { AgGridModule } from '@ag-grid-community/angular';
import { UploadFormModule } from '@shared/upload-form/upload-form.module';
import { ApesDialogImportWorkbookComponent } from '@shared/ui-zorro/src/types/grid';

@NgModule({
  declarations: FIELD_TYPE_COMPONENTS,
  imports: [
    FormsModule,
    CommonModule,
    ReactiveFormsModule,
    AgGridExtModule,
    ApesModule.forRoot(),
    UploadModule,
    UploadImagesModule,
    UploadFormModule,
    CheckboxModule,
    FormlyModule.forRoot(ZORRO_FORMLY_CONFIG),
    TranslateModule,
    AgGridModule,
  ],
  exports: [],
  entryComponents: [ApesDrawerCustomComponent,ApesDialogImportWorkbookComponent],
})
export class FormlyZorroModule {
}
